<?php $this->_compileInclude('header'); ?>
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="pages">
            <?php $this->_compileInclude('nav'); ?>
			<div class="content">
				<div class="col-xs-3" style="width: 20%">
					<div class="content-box padding">
                        <?php $this->_compileInclude('menu'); ?>
					</div>
				</div>
				<div class="col-xs-9 nopadding" style="width: 80%">
					<div class="content-box padding">
						<h2 class="title">
							学习进度
						</h2>
						<ul class="list-unstyled list-img">
							<li class="border padding">
								<div class="desc">
									<table class="table table-hover table-bordered">
										<tr class="info">
											<td>ID</td>
											<td>课程</td>
											<td>课程状态</td>
											<td>考试</td>
											<td>考试状态</td>
											<td>开始学习时间</td>
											<td>完成学习时间</td>
											<td>学习状态</td>
										</tr>
                                        <?php $pid = 0;
 foreach($this->tpl_var['progresses']['data'] as $key => $progress){ 
 $pid++; ?>
										<tr>
											<td><?php echo $progress['prsid']; ?></td>
											<td><?php echo $this->tpl_var['courses'][$progress['prscourseid']]['cstitle']; ?></td>
											<td><?php echo $this->tpl_var['status'][$progress['prscoursestatus']]; ?></td>
											<td><?php echo $this->tpl_var['basics'][$progress['prsexamid']]['basic']; ?></td>
											<td><?php echo $this->tpl_var['status'][$progress['prsexamstatus']]; ?></td>
											<td><?php echo date('Y-m-d',$progress['prstime']); ?></td>
											<td><?php if($progress['prsendtime']){ ?><?php echo date('Y-m-d',$progress['prsendtime']); ?><?php } else { ?>-<?php } ?></td>
											<td><?php echo $this->tpl_var['status'][$progress['prstatus']]; ?></td>
										</tr>
                                        <?php } ?>
									</table>
								</div>
							</li>
							<?php if($this->tpl_var['progresses']['pages']){ ?>
							<li class="border padding">
								<ul class="pagination pagination-right"><?php echo $this->tpl_var['progresses']['pages']; ?></ul>
							</li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
            <?php $this->_compileInclude('footer'); ?>
		</div>
	</div>
</div>
</body>
</html>